.class Lcom/brixd/niceapp/activity/BaseDetailActivity$38;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity;->goToVideoActivity()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/BaseDetailActivity;

    .prologue
    .line 1976
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .registers 6

    .prologue
    .line 1979
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    const-string v3, "VideoPlayFromDetail"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 1981
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/activity/AppVideoActivity;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1982
    .local v0, "intent":Landroid/content/Intent;
    new-instance v1, Lcom/brixd/niceapp/model/VideoAppModel;

    invoke-direct {v1}, Lcom/brixd/niceapp/model/VideoAppModel;-><init>()V

    .line 1983
    .local v1, "videoAppModel":Lcom/brixd/niceapp/model/VideoAppModel;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    check-cast v2, Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/AppModel;->getVideoUrl()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->videoUrl:Ljava/lang/String;

    .line 1984
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getIconUrl()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->iconUrl:Ljava/lang/String;

    .line 1985
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    check-cast v2, Lcom/brixd/niceapp/model/AppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/AppModel;->isPortrait()Z

    move-result v2

    iput-boolean v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->isPortrait:Z

    .line 1986
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v2

    iput v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->articleId:I

    .line 1987
    const/4 v2, 0x0

    iput v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->articleType:I

    .line 1988
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getPackageName()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->packageName:Ljava/lang/String;

    .line 1989
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getMinSdkVer()I

    move-result v2

    iput v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->minSdkVersion:I

    .line 1990
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->title:Ljava/lang/String;

    .line 1991
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "#"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v4, 0x7f0c0011

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "# "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    .line 1992
    invoke-virtual {v3}, Lcom/brixd/niceapp/model/BaseAppModel;->getTitle()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\u2014\u2014"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    .line 1993
    invoke-virtual {v3}, Lcom/brixd/niceapp/model/BaseAppModel;->getSubTitle()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "\u3002 "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v3, v3, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/BaseAppModel;->getDigest()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    check-cast v2, Lcom/brixd/niceapp/model/AppModel;

    .line 1994
    invoke-virtual {v2}, Lcom/brixd/niceapp/model/AppModel;->getVideoShareUrl()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->shareContent:Ljava/lang/String;

    .line 1995
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getDownloadUrls()Ljava/util/HashMap;

    move-result-object v2

    const-string v3, "Direct"

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_f8

    .line 1996
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v2, v2, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/BaseAppModel;->getDownloadUrls()Ljava/util/HashMap;

    move-result-object v2

    const-string v3, "Direct"

    .line 1997
    invoke-virtual {v2, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    iput-object v2, v1, Lcom/brixd/niceapp/model/VideoAppModel;->downloadUrl:Ljava/lang/String;

    .line 2000
    :cond_f8
    const-string v2, "video_app_model"

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 2001
    iget-object v2, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$38;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v2, v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->startActivity(Landroid/content/Intent;)V

    .line 2002
    return-void
.end method
